﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace Lonewolf.Entity.Migrations
{
    public partial class AddDeleteTime : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<DateTime>(
                name: "IsDeleteTime",
                table: "RoleMenu",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "IsDeleteTime",
                table: "RoleInfo",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "IsDeleteTime",
                table: "OrganizationInfo",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "IsDeleteTime",
                table: "MenuInfo",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "IsDeleteTime",
                table: "LoginInfo",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "IsDeleteTime",
                table: "AdminRole",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "IsDeleteTime",
                table: "AdminInfo",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "IsDeleteTime",
                table: "RoleMenu");

            migrationBuilder.DropColumn(
                name: "IsDeleteTime",
                table: "RoleInfo");

            migrationBuilder.DropColumn(
                name: "IsDeleteTime",
                table: "OrganizationInfo");

            migrationBuilder.DropColumn(
                name: "IsDeleteTime",
                table: "MenuInfo");

            migrationBuilder.DropColumn(
                name: "IsDeleteTime",
                table: "LoginInfo");

            migrationBuilder.DropColumn(
                name: "IsDeleteTime",
                table: "AdminRole");

            migrationBuilder.DropColumn(
                name: "IsDeleteTime",
                table: "AdminInfo");
        }
    }
}
